projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48d9379
)
(x_set_scroll_bar_width): If arg is too small, round it up.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 3 May 1997 06:13:30 +0000
(06:13 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 3 May 1997 06:13:30 +0000
(06:13 +0000)
src/xfns.c
patch
|
blob
|
history
diff --git
a/src/xfns.c
b/src/xfns.c
index 345f2f14c7dfb1e6ffa80d20de9c0801d4f829eb..56ec4455c7fda08064408904a4cca9695d2e0a52 100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-2004,8
+2004,8
@@
x_set_scroll_bar_width (f, arg, oldval)
{
int wid = FONT_WIDTH (f->output_data.x->font);
- if (XFASTINT (arg) < 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM)
-
Fsignal (Qargs_out_of_range, Fcons (arg, Qnil)
);
+ if (XFASTINT (arg) <
=
2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM)
+
XSETINT (arg, 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM + 1
);
FRAME_SCROLL_BAR_PIXEL_WIDTH (f) = XFASTINT (arg);
FRAME_SCROLL_BAR_COLS (f) = (XFASTINT (arg) + wid-1) / wid;